package com.ywj.interview.thread.concurrence;

public class SyncTest {
    static final Object lock = new Object();
    static int counter = 0;

    public static void main(String[] args) {
        synchronized (lock) {
            counter ++;
        }
        //System.out.println(counter); //1
    }
}
